import request from '@/utils/request'
import Qs from 'qs'

// 店铺列表
export function listShop(data) {
  return request({
    url: '/shopInfo/queryByPage',
    method: 'post',
    data,
  })
}

// 店铺详情
export function shopDetail(query) {
  return request({
    url: '/shopInfo/queryById',
    method: 'get',
    params: query,
  })
}

// 新增或更新店铺信息
export function addOrUpdate(data) {
  return request({
    url: '/shopInfo/addOrUpdate',
    method: 'post',
    data
  })
}
